package com.ruoyi.category.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 背包对象 sys_backpack
 * 
 * @author YJF
 */
public class SysBackpack extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 背包ID */
    private Long backpackId;

    /** 名称 */
    private String backpackName;

    /** 配件列表 */
    private String parts;

    /** 显示顺序 */
    private Integer backpackSort;
    /** 配件分组 */
    private String partGroup;
    
    /** 分组集合 */
    private List<Long> partGroupIds;

    /** 状态 */
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 配件ID集合 */
    private List<Long> partIds;

    /** 配件名称 */
    private String partName;

    /** 配件集合 */
    private List<SysPart> part;

    public List<SysPart> getPart() {
        return part;
    }

    public void setPart(List<SysPart> part) {
        this.part = part;
    }

    public void setBackpackId(Long backpackId) 
    {
        this.backpackId = backpackId;
    }

    public Long getBackpackId() 
    {
        return backpackId;
    }
    public void setBackpackName(String backpackName) 
    {
        this.backpackName = backpackName;
    }

    public String getBackpackName() 
    {
        return backpackName;
    }
    public void setParts(String parts) 
    {
        this.parts = parts;
    }

    public String getParts() 
    {
        return parts;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }


    public Integer getBackpackSort() {
        return backpackSort;
    }

    public void setBackpackSort(Integer backpackSort) {
        this.backpackSort = backpackSort;
    }

    public List<Long> getPartIds() {
        return partIds;
    }

    public void setPartIds(List<Long> partIds) {
        this.partIds = partIds;
    }

    public String getPartName() {
        return partName;
    }

    public void setPartName(String partName) {
        this.partName = partName;
    }

    public List<Long> getPartGroupIds() {
        return partGroupIds;
    }

    public void setPartGroupIds(List<Long> partGroupIds) {
        this.partGroupIds = partGroupIds;
    }

    public String getPartGroup() {
        return partGroup;
    }

    public void setPartGroup(String partGroup) {
        this.partGroup = partGroup;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("backpackId", getBackpackId())
            .append("backpackName", getBackpackName())
            .append("parts", getParts())
            .append("remark", getRemark())
            .append("backpackSort", getBackpackSort())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
